<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    mixin 全局混入 示例
</div>
</body>
<script src="../../js/vue.js"></script>
<script type="text/javascript">
    Vue.mixin({
        created() {
            console.log('全局mixin created')
        },
        methods: {
            sayHello() {
                console.log('hello 大家好')
            }
        }
    })

    var vm = new Vue({
        el: '#app'
    })
    vm.sayHello()
</script>
</html>
